package com.hs.srm.admin.modules.notice.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wangpeidong
 * @email wangpdcn@163.com
 * @date 2018-07-07 15:20:30
 */
@Setter
@Getter
@TableName("notice_main_info")
public class NoticeMainInfoEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /**
     * 目标用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 消息内容
     */
    @TableField("content")
    private String content;

    /**
     * 1为公告2为消息
     */
    @TableField("type")
    private Integer type;

    /**
     * 1为未读 2为已读
     */
    @TableField("readed")
    private Integer readed;

    /**
     * 0为未删除 1未删除
     */
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;

}
